<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp" %>
<html>
 <head>
    <title>物料信息管理</title>
    <!-- import css and js -->
	<%@ include file="/common/meta.jsp" %>
	<% 
	String typeName = request.getParameter("typeName");
	if(null != typeName){
		typeName = new String(typeName.getBytes("iso-8859-1"), "utf-8");
	}
	%>
	<c:set var="typeName" scope="page" value="<%=typeName %>"/> 
	<script src="${ctx}/js/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script>
	<script src="${ctx}/js/jsp/comm.js" type="text/javascript"></script>
	<script type="text/javascript">
		var basic_Url="${ctx}/public/windowalert";
		var piCode = '${piCode}';
		var grid;
		$(function(){
			grid = $("#table1").ligerGrid({
		        columns: [{ display: 'id', name: 'zd002MaterialsId', width:1,hide:true},
		                  { display: '编码', name: 'zd002MaterialsCode', width: 145 },
		                  { display: '名称', name: 'zd002MaterialsName', width: 145 },
		                  { display: '规格', name: 'zd017MaterialsSize', width: 100},
		                  { display: '型号', name: 'zd004MaterialsModel', width: 125},
		                  { display: '颜色', name: 'zd016MaterialsColor', width: 100},
		                  { display: '材质', name: 'zd018MaterialsQuanlity', width: 100},
		                  { display: 'PI单号', name: 'zd021PiCode', width: 100},
		                  { display: '基本单位', name: 'zd006Unit', width: 60},
		                  { display: '库存', name: 'zd014WhQuantity', width: 60 },
		                  { display: 'BOM应出数量', name: 'zd022MaterialBomQuantity', width: 80 },
		                  { display: 'BOM已出数量', name: 'zd023MaterialBomOutQuantity', width: 80 },
		                  { display: '出库数', name: 'zd007Quantity', width: 80 },
		                  { display: '反审数', name: 'zd007BackQuantity', width: 80 }
		                 ],  usePager: true,pageSize:1000,pageSizeOptions:[1000],
		                     url : basic_Url+"/basicMaterialsItemBomService.do?piCode="+piCode+"&whId="+'${whId}',
		                     width: "100%", height:"98%", checkbox: true
		             });
			$("#pageloading").hide();
		});
		
		function getSelected(){
			var rows = grid.getCheckedRows();
			 return rows;
		}
		
		function Close(){
			CloseDialog();
		}
	</script>
	
  </head>
 <body style="padding:10px">  
       <div id="layout1">
          <div id="pageHeader" class="pageHeader">
               <div class="searchBar" id="multipleSearchDialog">
	                <table class="table" width="100%" id="searchHeader" >  
                        <tbody id="newbody">
                        </tbody>
 	                </table>
                    <!-- <div class="subBar">
			             <ul>
				             <li><div class="buttonActive"><div class="buttonContent"><button type="submit" id="btnSearch" onclick="searchAP()">查询</button></div></div></li>
				             <li><a class="button" onclick="clearSearch()"><span>重置</span></a></li>
			             </ul>
	                </div> -->
               </div>
          </div>
      </div>
      <div position="center" id="table1">
      </div>
      <div class="clear"></div>
<!--    </div> -->
    </body>
</html>